package com.ruoyi.lhb.service.impl;

import java.util.List;

import com.ruoyi.whc.domain.Note;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lhb.mapper.OrderrecordMapper;
import com.ruoyi.lhb.domain.Orderrecord;
import com.ruoyi.lhb.service.IOrderrecordService;

/**
 * 核酸预约列表Service业务层处理
 * 
 * @author lhb
 * @date 2022-09-22
 */
@Service
public class OrderrecordServiceImpl implements IOrderrecordService 
{
    @Autowired
    private OrderrecordMapper orderrecordMapper;

    /**
     * 查询核酸预约列表
     * 
     * @param orid 核酸预约列表主键
     * @return 核酸预约列表
     */
    @Override
    public Orderrecord selectOrderrecordByOrid(Long orid)
    {
        return orderrecordMapper.selectOrderrecordByOrid(orid);
    }

    /**
     * 查询核酸预约列表列表
     * 
     * @param orderrecord 核酸预约列表
     * @return 核酸预约列表
     */
    @Override
    public List<Orderrecord> selectOrderrecordList(Orderrecord orderrecord)
    {
        return orderrecordMapper.selectOrderrecordList(orderrecord);
    }

    /**
     * 新增核酸预约列表
     * 
     * @param orderrecord 核酸预约列表
     * @return 结果
     */
    @Override
    public int insertOrderrecord(Orderrecord orderrecord)
    {
        return orderrecordMapper.insertOrderrecord(orderrecord);
    }

    /**
     * 修改核酸预约列表
     * 
     * @param orderrecord 核酸预约列表
     * @return 结果
     */
    @Override
    public int updateOrderrecord(Orderrecord orderrecord)
    {
        return orderrecordMapper.updateOrderrecord(orderrecord);
    }

    /**
     * 批量删除核酸预约列表
     * 
     * @param orids 需要删除的核酸预约列表主键
     * @return 结果
     */
    @Override
    public int deleteOrderrecordByOrids(Long[] orids)
    {
        return orderrecordMapper.deleteOrderrecordByOrids(orids);
    }

    /**
     * 删除核酸预约列表信息
     * 
     * @param orid 核酸预约列表主键
     * @return 结果
     */
    @Override
    public int deleteOrderrecordByOrid(Long orid)
    {
        return orderrecordMapper.deleteOrderrecordByOrid(orid);
    }

    @Override
    public List<Note> selectFrontnote(String uid, String date) {
        return orderrecordMapper.selectFrontnote(uid, date);
    }

    @Override
    public List<Note> selectUsFrontnote(String address,String date, String startime, String endtime, String uid) {
        return orderrecordMapper.selectUsFrontnote(address, date, startime, endtime, uid);
    }

    @Override
    public int updateUstate(String uid, String status) {
        return orderrecordMapper.updateUstate(uid, status);
    }
}
